import { createApp } from 'vue'
import './style.css'
// 引入路由管理
import router, { setupRouter } from '@/router'
import App from './App.vue'
import { setupElementPlus } from './plugins/elementPlus/index'
// 定义一个异步函数setupAll
const setupAll = async () => {
    // 创建一个Vue应用实例
    const app = createApp(App)
    setupRouter(app)
	setupElementPlus(app)
    await router.isReady()
    // 等待路由准备就绪
    app.mount('#app')
}
setupAll()